home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
math
/
nrpas13
/
gammq.pas
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
1991-04-29
|
352 b
|
16 lines
FUNCTION gammq(a,x: real): real;
VAR
gamser,gln: real;
BEGIN
IF ((x < 0.0) OR (a <= 0.0)) THEN BEGIN
writeln('pause in GAMMQ - invalid arguments'); readln
END;
IF (x < a+1.0) THEN BEGIN
gser(a,x,gamser,gln);
gammq := 1.0-gamser
END ELSE BEGIN
gcf(a,x,gamser,gln);
gammq := gamser
END
END;